package com.hgl.bi.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hgl.bi.web.entity.MetadataEntity;
import com.hgl.bi.web.model.vo.FileVo;

import java.util.List;

/**
 * @program: BI
 * @description: 文件元数据管理持久层
 * @author: hgl
 * @create: 2025-02-14 16:34
 */
public interface MetadataMapper extends BaseMapper<MetadataEntity> {

    boolean associateSet(Long fileId, List<Long> setIds);

    Long sumFileSize(long userId);

    List<FileVo> selectAssociatedFiles(Long id);

    List<Long> selectFileSets(Long id);

    boolean removeSets(Long fileId, List<Long> setIds);

    Long sumCleanCount(long userId);

    List<Long> selectMyAssociateFiles(long userId, Long id);

    boolean associateFile(Long setId, List<Long> fileIds);

    boolean removeFiles(Long setId, List<Long> fileIds);
}
